{% extends 'base.html' %}

{%block title%}Yeni Kategori{%endblock%}

{%block content %}

    <form action="." method="POST">
        <table>
            {{ form.as_table }}
        </table>
        <p><input type="submit" value="Ekle"></p>
    </form>

	<h2>Kategoriler ( {{categories.count}}) </h2>
	<table>
			<tr>
				<td><b>Kategori</b></td>
				<td><b>Aciklama</b></td>
			</tr>
			{%for c in categories%}
				<tr>
					<td>{{c.name}}</td>
					<td>{{c.description}}</td>
				</tr>
			{%endfor%}
	</table>


{%endblock%}
